package org.zsw.hot_search_list.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Slf4j
public class LimitFlowAop {

    @Pointcut("@annotation(org.zsw.hot_search_list.annotation.LimitFlow)")
    private void permissionCheck() {
    }


    @Before("permissionCheck()")
    public void limitFlowCheck(JoinPoint joinPoint) {
        log.info("限流检查");


    }

}
